//
// Created by konglinglong on 2020/9/21.
//

#include <stdio.h>
#include "../../../lib/doctest.h"
#include "../../../../lib/csp/include/cspApi.h"

using namespace std;

TEST_SUITE ("OS_MEM_TS")
{
    TEST_CASE ("OS_MEM_TC")
    {
            SUBCASE("OS_MEM_SC_BASE")
        {
            printf("MemGetAllocSize = %u, MemAllocCount = %u, MemFreeCount = %u\n",
                OS_MemGetAllocSize(), OS_MemGetAllocCount(), OS_MemGetFreeCount());
            REQUIRE(OS_MemGetAllocCount() == OS_MemGetFreeCount());
        }
    }
}

